package com.yootk.main;

import com.yootk.config.ConfigAOP;
import com.yootk.service.IMessageService;
import com.yootk.service.impl.MessageServiceImpl;
import org.aspectj.bridge.IMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class StartAnnocation {
    private static final Logger LOGGER = LoggerFactory.getLogger(StartAnnocation.class) ;

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConfigAOP.class) ;
        IMessageService message = context.getBean(IMessageService.class) ;
        LOGGER.info("{}",message.echo("sunxian"));
    }

}
